Functions

Includes APIs for getting XML files. More...

Functions

def MV_CC_InvalidateNodes (self)
 Clears the buffer of the GenICam node. More...
 
def MV_XML_GetGenICamXML (self, pData, nDataSize, pnDataLen)
 Gets the XML file of device feature tree. More...
 
def MV_XML_GetNodeAccessMode (self, strName, penAccessMode)
 Gets the access mode of the current node. More...
 
def MV_XML_GetNodeInterfaceType (self, strName, penInterfaceType)
 Gets the type of the current node. More...
 
def MV_CC_FeatureSave (self, strFileName)
 Saves device features. More...
 
def MV_CC_FeatureLoad (self, strFileName)
 Imports device features. More...
 
def MV_CC_FeatureLoadEx (self, strFileName, pstNodeErrorList)
 Imports device features, and saves error information list. More...
 

Detailed Description

Includes APIs for getting XML files.

Function Documentation

◆ MV_CC_InvalidateNodes()

def MvCameraControl_class.MV_CC_InvalidateNodes (   self)

Clears the buffer of the GenICam node.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.

◆ MV_XML_GetGenICamXML()

def MvCameraControl_class.MV_XML_GetGenICamXML (   self,
  pData,
  nDataSize,
  pnDataLen 
)

Gets the XML file of device feature tree.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
pData[IN][OUT] It refers to received XML data buffer.
nDataSize[IN] It refers to the receive buffer size.
pnDataLen[IN][OUT] It refers to the actual data size.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
  • When pData is NULL or when the value of nDataSize is less than the XML file size, no data will be copied, and the XML file size will be returned via pnDataLen.
  • When pData is valid and the buffer size is enough, the complete data will be copied and stored in the buffer, and the XML file size will be returned via pnDataLen.

◆ MV_XML_GetNodeAccessMode()

def MvCameraControl_class.MV_XML_GetNodeAccessMode (   self,
  strName,
  penAccessMode 
)

Gets the access mode of the current node.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
strName[IN] It refers to the node name.
penAccessMode[IN][OUT] It refers to the access mode for node.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.

◆ MV_XML_GetNodeInterfaceType()

def MvCameraControl_class.MV_XML_GetNodeInterfaceType (   self,
  strName,
  penInterfaceType 
)

Gets the type of the current node.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
strName[IN] It refers to the node name.
penInterfaceType[IN][OUT] It refers to the node type.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
Call this API to get the node type in advance before calling the universal API such as MV_CC_GetIntValueEx() and MV_CC_SetIntValueEx(), so that you can choose the proper universal API to get and set node value.

◆ MV_CC_FeatureSave()

def MvCameraControl_class.MV_CC_FeatureSave (   self,
  strFileName 
)

Saves device features.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
strFileName[IN] It refers to the feature file name.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.

◆ MV_CC_FeatureLoad()

def MvCameraControl_class.MV_CC_FeatureLoad (   self,
  strFileName 
)

Imports device features.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
strFileName[IN] It refers to the feature file name.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.

◆ MV_CC_FeatureLoadEx()

def MvCameraControl_class.MV_CC_FeatureLoadEx (   self,
  strFileName,
  pstNodeErrorList 
)

Imports device features, and saves error information list.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
strFileName[IN] It refers to the feature file name.
pstNodeErrorList[IN OUT] It refers to the error message list. This parameter is requested by the user externally and filled with data internally, and the value null indicates that the user is not concerned about error occurred when importing.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
If importing part of the nodes fails, the API will return MV_OK. You can get the error node and the reason for failure through stNodeError in the error message list.